package mercurius.fitness.client.rb.diet;

import java.util.Date;
import java.util.HashMap;

import net.pleso.framework.client.dal.db.types.DBDate;
import net.pleso.framework.client.dal.db.types.DBFloat;
import net.pleso.framework.client.dal.db.types.DBInteger;
import net.pleso.framework.client.dal.db.types.DBString;
import net.pleso.framework.client.util.DateUtil;

public class DietInfo {
	
	private Integer id = DBInteger.nullValue;
	
//	 mdl_mercurius_nutrition_log columns
	
	private Date date = DBDate.nullValue;
	private String time = DBString.nullValue;
	private Float servings = DBFloat.nullValue;
	private String log_notes = DBString.nullValue;
	
//	 mdl_mercurius_nutrition_repository
	
	private String name = DBString.nullValue;
	private Integer pdv_kcalories = DBInteger.nullValue;
	private Integer calories = DBInteger.nullValue;
	private Float serving_size = DBFloat.nullValue;
	private Float amount = DBFloat.nullValue;
	private String amount_measurement = DBString.nullValue;
	private Float fat_total = DBFloat.nullValue;
	private Float fat_saturated = DBFloat.nullValue;
	private Float fat_trans = DBFloat.nullValue;
	private Float fat_polyunsaturated = DBFloat.nullValue;
	private Float fat_monounsaturated = DBFloat.nullValue;
	private Float cholesterol = DBFloat.nullValue;
	private Float sodium = DBFloat.nullValue;
	private Float potassium = DBFloat.nullValue;
	private Float carb_total = DBFloat.nullValue;
	private Float carb_fiber_dietary = DBFloat.nullValue;
	private Float carb_fiber_soluble = DBFloat.nullValue;
	private Float carb_fiber_insoluble = DBFloat.nullValue;
	private Float carb_sugar = DBFloat.nullValue;
	private Float carb_other = DBFloat.nullValue;
	private Float protein = DBFloat.nullValue;
	private Float Vitamin_A_retinol = DBFloat.nullValue;
	private Float Vitamin_B1_thiamine = DBFloat.nullValue;
	private Float Vitamin_B2_riboflavin = DBFloat.nullValue;
	private Float Vitamin_B3_niacin = DBFloat.nullValue;
	private Float Vitamin_B5_pantothenic = DBFloat.nullValue;
	private Float Vitamin_B6_pyridoxine = DBFloat.nullValue;
	private Float Vitamin_B7_biotin = DBFloat.nullValue;
	private Float Vitamin_B9_folic = DBFloat.nullValue;
	private Float Vitamin_B12_cyanocobalamin = DBFloat.nullValue;
	private Float Vitamin_choline = DBFloat.nullValue;
	private Float Vitamin_C_scorbic = DBFloat.nullValue;
	private Float Vitamin_D_calciferol = DBFloat.nullValue;
	private Float Vitamin_E_tocopherol = DBFloat.nullValue;
	private Float Vitamin_K_naphthoquinone = DBFloat.nullValue;
	private Float Mineral_Cr_chromium = DBFloat.nullValue;
	private Float Mineral_Br_Bromine = DBFloat.nullValue;
	private Float Mineral_Co_Cobalt = DBFloat.nullValue;
	private Float Mineral_Cu_Copper = DBFloat.nullValue;
	private Float Mineral_Ge_Germanium = DBFloat.nullValue;
	private Float Mineral_I_Iodine = DBFloat.nullValue;
	private Float Mineral_Fe_Iron = DBFloat.nullValue;
	private Float Mineral_Mg_Magnesium = DBFloat.nullValue;
	private Float Mineral_Mn_Manganese = DBFloat.nullValue;
	private Float Mineral_Mo_Molybdenum = DBFloat.nullValue;
	private Float Mineral_Se_Selenium = DBFloat.nullValue;
	private Float Mineral_Zn_Zinc  = DBFloat.nullValue;
	private Float Mineral_Ca_Calcium = DBFloat.nullValue;
	private Float Mineral_P_Phosphorus = DBFloat.nullValue;
	private Float Mineral_S_Sulfur = DBFloat.nullValue;
	private Float Mineral_V_Vanadium = DBFloat.nullValue;
	private String nutrition_notes = DBString.nullValue;
	
	public DietInfo() {}
	
	public DietInfo(HashMap m) {
		Object[] a = m.keySet().toArray();
		for(int i=0;i < a.length;i++) {
			String k = (String) a[i];
			
			if(k.equals("id")) { id = new Integer(Integer.parseInt((String) m.get("id")));}
			
//			 mdl_mercurius_nutrition_log columns
			
		else if(k.equals("date")) { date = DateUtil.parseDate((String) m.get("date"));}
		else if(k.equals("time")) { time = (String) m.get("time");}
		else if(k.equals("servings")) { servings = new Float(Float.parseFloat((String) m.get("servings")));}
		else if(k.equals("log_notes")) { log_notes = (String) m.get("log_notes");}
			
//			 mdl_mercurius_nutrition_repository
			
		else if(k.equals("name")) { name = (String) m.get("name");}
		else if(k.equals("pdv_kcalories")) { pdv_kcalories = new Integer(Integer.parseInt((String) m.get("pdv_kcalories")));}
		else if(k.equals("kcalories")) { calories = new Integer(Integer.parseInt((String) m.get("kcalories")));}
		else if(k.equals("serving_size")) { serving_size = new Float(Float.parseFloat((String) m.get("serving_size")));}
		else if(k.equals("amount")) { amount = new Float(Float.parseFloat((String) m.get("amount")));}
		else if(k.equals("amount_measurement")) { amount_measurement = (String) m.get("amount_measurement");}
		else if(k.equals("fat_total")) { fat_total = new Float(Float.parseFloat((String) m.get("fat_total")));}
		else if(k.equals("fat_saturated")) { fat_saturated = new Float(Float.parseFloat((String) m.get("fat_saturated")));}
		else if(k.equals("fat_trans")) { fat_trans = new Float(Float.parseFloat((String) m.get("fat_trans")));}
		else if(k.equals("fat_polyunsaturated")) { fat_polyunsaturated = new Float(Float.parseFloat((String) m.get("fat_polyunsaturated")));}
		else if(k.equals("fat_monounsaturated")) { fat_monounsaturated = new Float(Float.parseFloat((String) m.get("fat_monounsaturated")));}
		else if(k.equals("cholesterol")) { cholesterol = new Float(Float.parseFloat((String) m.get("cholesterol")));}
		else if(k.equals("sodium")) { sodium = new Float(Float.parseFloat((String) m.get("sodium")));}
		else if(k.equals("potassium")) { potassium = new Float(Float.parseFloat((String) m.get("potassium")));}
		else if(k.equals("carb_total")) { carb_total = new Float(Float.parseFloat((String) m.get("carb_total")));}
		else if(k.equals("carb_fiber_dietary")) { carb_fiber_dietary = new Float(Float.parseFloat((String) m.get("carb_fiber_dietary")));}
		else if(k.equals("carb_fiber_soluble")) { carb_fiber_soluble = new Float(Float.parseFloat((String) m.get("carb_fiber_soluble")));}
		else if(k.equals("carb_fiber_insoluble")) { carb_fiber_insoluble = new Float(Float.parseFloat((String) m.get("carb_fiber_insoluble")));}
		else if(k.equals("carb_sugar")) { carb_sugar = new Float(Float.parseFloat((String) m.get("carb_sugar")));}
		else if(k.equals("carb_other")) { carb_other = new Float(Float.parseFloat((String) m.get("carb_other")));}
		else if(k.equals("protein")) { protein = new Float(Float.parseFloat((String) m.get("protein")));}
		else if(k.equals("Vitamin_A_retinol")) { Vitamin_A_retinol = new Float(Float.parseFloat((String) m.get("Vitamin_A_retinol")));}
		else if(k.equals("Vitamin_B1_thiamine")) { Vitamin_B1_thiamine = new Float(Float.parseFloat((String) m.get("Vitamin_B1_thiamine")));}
		else if(k.equals("Vitamin_B2_riboflavin")) { Vitamin_B2_riboflavin = new Float(Float.parseFloat((String) m.get("Vitamin_B2_riboflavin")));}
		else if(k.equals("Vitamin_B3_niacin")) { Vitamin_B3_niacin = new Float(Float.parseFloat((String) m.get("Vitamin_B3_niacin")));}
		else if(k.equals("Vitamin_B5_pantothenic")) { Vitamin_B5_pantothenic = new Float(Float.parseFloat((String) m.get("Vitamin_B5_pantothenic")));}
		else if(k.equals("Vitamin_B6_pyridoxine")) { Vitamin_B6_pyridoxine = new Float(Float.parseFloat((String) m.get("Vitamin_B6_pyridoxine")));}
		else if(k.equals("Vitamin_B7_biotin")) { Vitamin_B7_biotin = new Float(Float.parseFloat((String) m.get("Vitamin_B7_biotin")));}
		else if(k.equals("Vitamin_B9_folic")) { Vitamin_B9_folic = new Float(Float.parseFloat((String) m.get("Vitamin_B9_folic")));}
		else if(k.equals("Vitamin_B12_cyanocobalamin")) { Vitamin_B12_cyanocobalamin = new Float(Float.parseFloat((String) m.get("Vitamin_B12_cyanocobalamin")));}
		else if(k.equals("Vitamin_choline")) { Vitamin_choline = new Float(Float.parseFloat((String) m.get("Vitamin_choline")));}
		else if(k.equals("Vitamin_C_scorbic")) { Vitamin_C_scorbic = new Float(Float.parseFloat((String) m.get("Vitamin_C_scorbic")));}
		else if(k.equals("Vitamin_D_calciferol")) { Vitamin_D_calciferol = new Float(Float.parseFloat((String) m.get("Vitamin_D_calciferol")));}
		else if(k.equals("Vitamin_E_tocopherol")) { Vitamin_E_tocopherol = new Float(Float.parseFloat((String) m.get("Vitamin_E_tocopherol")));}
		else if(k.equals("Vitamin_K_naphthoquinone")) { Vitamin_K_naphthoquinone = new Float(Float.parseFloat((String) m.get("Vitamin_K_naphthoquinone")));}
		else if(k.equals("Mineral_Cr_chromium")) { Mineral_Cr_chromium = new Float(Float.parseFloat((String) m.get("Mineral_Cr_chromium")));}
		else if(k.equals("Mineral_Br_Bromine")) { Mineral_Br_Bromine = new Float(Float.parseFloat((String) m.get("Mineral_Br_Bromine")));}
		else if(k.equals("Mineral_Co_Cobalt")) { Mineral_Co_Cobalt = new Float(Float.parseFloat((String) m.get("Mineral_Co_Cobalt")));}
		else if(k.equals("Mineral_Cu_Copper")) { Mineral_Cu_Copper = new Float(Float.parseFloat((String) m.get("Mineral_Cu_Copper")));}
		else if(k.equals("Mineral_Ge_Germanium")) { Mineral_Ge_Germanium = new Float(Float.parseFloat((String) m.get("Mineral_Ge_Germanium")));}
		else if(k.equals("Mineral_I_Iodine")) { Mineral_I_Iodine = new Float(Float.parseFloat((String) m.get("Mineral_I_Iodine")));}
		else if(k.equals("Mineral_Fe_Iron")) { Mineral_Fe_Iron = new Float(Float.parseFloat((String) m.get("Mineral_Fe_Iron")));}
		else if(k.equals("Mineral_Mg_Magnesium")) { Mineral_Mg_Magnesium = new Float(Float.parseFloat((String) m.get("Mineral_Mg_Magnesium")));}
		else if(k.equals("Mineral_Mn_Manganese")) { Mineral_Mn_Manganese = new Float(Float.parseFloat((String) m.get("Mineral_Mn_Manganese")));}
		else if(k.equals("Mineral_Mo_Molybdenum")) { Mineral_Mo_Molybdenum = new Float(Float.parseFloat((String) m.get("Mineral_Mo_Molybdenum")));}
		else if(k.equals("Mineral_Se_Selenium")) { Mineral_Se_Selenium = new Float(Float.parseFloat((String) m.get("Mineral_Se_Selenium")));}
		else if(k.equals("Mineral_Zn_Zinc")) { Mineral_Zn_Zinc  = new Float(Float.parseFloat((String) m.get("Mineral_Zn_Zinc")));}
		else if(k.equals("Mineral_Ca_Calcium")) { Mineral_Ca_Calcium = new Float(Float.parseFloat((String) m.get("Mineral_Ca_Calcium")));}
		else if(k.equals("Mineral_P_Phosphorus")) { Mineral_P_Phosphorus = new Float(Float.parseFloat((String) m.get("Mineral_P_Phosphorus")));}
		else if(k.equals("Mineral_S_Sulfur")) { Mineral_S_Sulfur = new Float(Float.parseFloat((String) m.get("Mineral_S_Sulfur")));}
		else if(k.equals("Mineral_V_Vanadium")) { Mineral_V_Vanadium = new Float(Float.parseFloat((String) m.get("Mineral_V_Vanadium")));}
		else if(k.equals("nutrition_notes")) { nutrition_notes = (String) m.get("nutrition_notes");}

		}
		
	}
	
	
//	 mdl_mercurius_nutrition_log columns
	
	public Integer getID() {
		return id;
	}

	public void setID(Integer id) {
		this.id = id;
	}
	
	public Date getDate() {
		return date;
	}
	
	public void setDate(Date d) {
		date = d;
	}
	
	
	
	public String getTime() {
		return time;
	}
	
	public void setTime(String n) {
		time = n;
	}	
	
	public Float getServings() {
		return servings;
	}
	
	public void setServings(Float n) {
		servings = n;
	}	
	
	public String getLogNotes() {
		return log_notes;
	}
	
	public void setLogNotes(String n) {
		log_notes = n;
	}	
	
	
//	 mdl_mercurius_nutrition_repository
	
	public String getName() {
		return name;
	}
	
	public void setName(String n) {
		name = n;
	}
	
	// pdv_kcalories
	public Integer getPDV() {
		return pdv_kcalories;
	}
	
	public void setPDV(Integer n) {
		pdv_kcalories = n;
	}
	
	public Integer getCalories() {
		return calories;
	}
	
	public void setCalories(Integer n) {
		calories = n;
	}
	
	
	public Float getServing_size() {
		return serving_size;
	}
	
	public void setServing_size(Float n) {
		serving_size = n;
	}	
	
	public Float getAmount() {
		return amount;
	}
	
	public void setAmount(Float n) {
		amount = n;
	}
	
	public String getAmount_measurement() {
		return amount_measurement;
	}
	
	public void setAmount_measurement(String n) {
		amount_measurement = n;
	}	
	
	public Float getFat_total() {
		return fat_total;
	}
	
	public void setFat_total(Float n) {
		fat_total = n;
	}	
	
	public Float getFat_saturated() {
		return fat_saturated;
	}
	
	public void setFat_saturated(Float n) {
		fat_saturated = n;
	}	
	
	public Float getFat_trans() {
		return fat_trans;
	}
	
	public void setFat_trans(Float n) {
		fat_trans = n;
	}	
	
	public Float getFat_polyunsaturated() {
		return fat_polyunsaturated;
	}
	
	public void setFat_polyunsaturated(Float n) {
		fat_polyunsaturated = n;
	}	
	
	public Float getFat_monounsaturated() {
		return fat_monounsaturated;
	}
	
	public void setFat_monounsaturated(Float n) {
		fat_monounsaturated = n;
	}	
	
	public Float getCholesterol() {
		return cholesterol;
	}
	
	public void setCholesterol(Float n) {
		cholesterol = n;
	}	
	
	public Float getSodium() {
		return sodium;
	}
	
	public void setSodium(Float n) {
		sodium = n;
	}	
	
	public Float getPotassium() {
		return potassium;
	}
	
	public void setPotassium(Float n) {
		potassium = n;
	}	
	
	public Float getCarb_total() {
		return carb_total;
	}
	
	public void setCarb_total(Float n) {
		carb_total = n;
	}	
	
	public Float getCarb_fiber_dietary() {
		return carb_fiber_dietary;
	}
	
	public void setCarb_fiber_dietary(Float n) {
		carb_fiber_dietary = n;
	}	
	
	public Float getCarb_fiber_soluble() {
		return carb_fiber_soluble;
	}
	
	public void setCarb_fiber_soluble(Float n) {
		carb_fiber_soluble = n;
	}	
	
	public Float getCarb_fiber_insoluble() {
		return carb_fiber_insoluble;
	}
	
	public void setCarb_fiber_insoluble(Float n) {
		carb_fiber_insoluble = n;
	}	
	
	public Float getCarb_sugar() {
		return carb_sugar;
	}
	
	public void setCarb_sugar(Float n) {
		carb_sugar = n;
	}	
	
	public Float getCarb_other() {
		return carb_other;
	}
	
	public void setCarb_other(Float n) {
		carb_other = n;
	}	
	
	public Float getProtein() {
		return protein;
	}
	
	public void setProtein(Float n) {
		protein = n;
	}	
	

	public Float getVitamin_A_retinol() {
		return Vitamin_A_retinol;
	}
	
	public void setVitamin_A_retinol(Float v) {
		Vitamin_A_retinol = v;
	}

	public Float getVitamin_B1_thiamine() {
		return Vitamin_B1_thiamine;
	}
	
	public void setVitamin_B1_thiamine(Float v) {
		Vitamin_B1_thiamine = v;
	}

	public Float getVitamin_B2_riboflavin() {
		return Vitamin_B2_riboflavin;
	}
	
	public void setVitamin_B2_riboflavin(Float v) {
		Vitamin_B2_riboflavin = v;
	}

	public Float getVitamin_B3_niacin() {
		return Vitamin_B3_niacin;
	}
	
	public void setVitamin_B3_niacin(Float v) {
		Vitamin_B3_niacin = v;
	}

	public Float getVitamin_B5_pantothenic() {
		return Vitamin_B5_pantothenic;
	}
	
	public void setVitamin_B5_pantothenic(Float v) {
		Vitamin_B5_pantothenic = v;
	}

	public Float getVitamin_B6_pyridoxine() {
		return Vitamin_B6_pyridoxine;
	}
	
	public void setVitamin_B6_pyridoxine(Float v) {
		Vitamin_B6_pyridoxine = v;
	}

	public Float getVitamin_B7_biotin() {
		return Vitamin_B7_biotin;
	}
	
	public void setVitamin_B7_biotin(Float v) {
		Vitamin_B7_biotin = v;
	}

	public Float getVitamin_B9_folic() {
		return Vitamin_B9_folic;
	}
	
	public void setVitamin_B9_folic(Float v) {
		Vitamin_B9_folic = v;
	}

	public Float getVitamin_B12_cyanocobalamin() {
		return Vitamin_B12_cyanocobalamin;
	}
	
	public void setVitamin_B12_cyanocobalamin(Float v) {
		Vitamin_B12_cyanocobalamin = v;
	}

	public Float getVitamin_choline() {
		return Vitamin_choline;
	}
	
	public void setVitamin_choline(Float v) {
		Vitamin_choline = v;
	}

	public Float getVitamin_C_scorbic() {
		return Vitamin_C_scorbic;
	}
	
	public void setVitamin_C_scorbic(Float v) {
		Vitamin_C_scorbic = v;
	}

	public Float getVitamin_D_calciferol() {
		return Vitamin_D_calciferol;
	}
	
	public void setVitamin_D_calciferol(Float v) {
		Vitamin_D_calciferol = v;
	}

	public Float getVitamin_E_tocopherol() {
		return Vitamin_E_tocopherol;
	}
	
	public void setVitamin_E_tocopherol(Float v) {
		Vitamin_E_tocopherol = v;
	}

	public Float getVitamin_K_naphthoquinone() {
		return Vitamin_K_naphthoquinone;
	}
	
	public void setVitamin_K_naphthoquinone(Float v) {
		Vitamin_K_naphthoquinone = v;
	}

	public Float getMineral_Cr_chromium() {
		return Mineral_Cr_chromium;
	}
	
	public void setMineral_Cr_chromium(Float v) {
		Mineral_Cr_chromium = v;
	}

	public Float getMineral_Br_Bromine() {
		return Mineral_Br_Bromine;
	}
	
	public void setMineral_Br_Bromine(Float v) {
		Mineral_Br_Bromine = v;
	}

	public Float getMineral_Co_Cobalt() {
		return Mineral_Co_Cobalt;
	}
	
	public void setMineral_Co_Cobalt(Float v) {
		Mineral_Co_Cobalt = v;
	}

	public Float getMineral_Cu_Copper() {
		return Mineral_Cu_Copper;
	}
	
	public void setMineral_Cu_Copper(Float v) {
		Mineral_Cu_Copper = v;
	}

	public Float getMineral_Ge_Germanium() {
		return Mineral_Ge_Germanium;
	}
	
	public void setMineral_Ge_Germanium(Float v) {
		Mineral_Ge_Germanium = v;
	}

	public Float getMineral_I_Iodine() {
		return Mineral_I_Iodine;
	}
	
	public void setMineral_I_Iodine(Float v) {
		Mineral_I_Iodine = v;
	}

	public Float getMineral_Fe_Iron() {
		return Mineral_Fe_Iron;
	}
	
	public void setMineral_Fe_Iron(Float v) {
		Mineral_Fe_Iron = v;
	}

	public Float getMineral_Mg_Magnesium() {
		return Mineral_Mg_Magnesium;
	}
	
	public void setMineral_Mg_Magnesium(Float v) {
		Mineral_Mg_Magnesium = v;
	}

	public Float getMineral_Mn_Manganese() {
		return Mineral_Mn_Manganese;
	}
	
	public void setMineral_Mn_Manganese(Float v) {
		Mineral_Mn_Manganese = v;
	}

	public Float getMineral_Mo_Molybdenum() {
		return Mineral_Mo_Molybdenum;
	}
	
	public void setMineral_Mo_Molybdenum(Float v) {
		Mineral_Mo_Molybdenum = v;
	}

	public Float getMineral_Se_Selenium() {
		return Mineral_Se_Selenium;
	}
	
	public void setMineral_Se_Selenium(Float v) {
		Mineral_Se_Selenium = v;
	}

	public Float getMineral_Zn_Zinc() {
		return Mineral_Zn_Zinc;
	}
	
	public void setMineral_Zn_Zinc(Float v) {
		Mineral_Zn_Zinc = v;
	}

	public Float getMineral_Ca_Calcium() {
		return Mineral_Ca_Calcium;
	}
	
	public void setMineral_Ca_Calcium(Float v) {
		Mineral_Ca_Calcium = v;
	}

	public Float getMineral_P_Phosphorus() {
		return Mineral_P_Phosphorus;
	}
	
	public void setMineral_P_Phosphorus(Float v) {
		Mineral_P_Phosphorus = v;
	}

	public Float getMineral_S_Sulfur() {
		return Mineral_S_Sulfur;
	}
	
	public void setMineral_S_Sulfur(Float v) {
		Mineral_S_Sulfur = v;
	}

	public Float getMineral_V_Vanadium() {
		return Mineral_V_Vanadium;
	}
	
	public void setMineral_V_Vanadium(Float v) {
		Mineral_V_Vanadium = v;
	}
	
	public String getNutritionNotes() {
		return nutrition_notes;
	}
	
	public void setNutritionNotes(String n) {
		nutrition_notes = n;
	}
	

}
